package com.mazong.servershiroaa.service.impl;

import com.mazong.servershiroaa.mapper.IDbSecurityMapper;
import com.mazong.servershiroaa.pojo.TbUser;
import com.mazong.servershiroaa.service.ShiroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShiroServiceImpl implements ShiroService {

    @Autowired
    IDbSecurityMapper iDbSecurityMapper;

    @Override
    public TbUser getUserByName(String username) {
        return iDbSecurityMapper.getUserByName(username);
    }

    @Override
    public List<String> getPermissionsById(Integer id) {
        return iDbSecurityMapper.getPermissionsById(id);
    }
}
